﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Imaginecup.factory;

namespace Imaginecup.gameState.water.stageMan
{
    public class WaterStageManFactory : IFactory
    {
        private static WaterStageManFactory m_Factory = null;

        private WaterStageMan m_Stage1;

        private WaterStageManFactory()
        {
            m_Stage1 = new WaterStageMan(new WaterStageFactory());
            m_Stage1.LoadStageData();
        }

        public static WaterStageManFactory GetMalariaStageManFactory()
        {
            if (m_Factory == null)
            {
                m_Factory = new WaterStageManFactory();
            }
            return m_Factory;
        }
        public Object GetObject(Object StageManID)
        {
            StateStageManID id = (StateStageManID)StageManID;

            switch (id)
            {
                case StateStageManID.WaterStageMan_1:
                    return m_Stage1;
            }

            return null;
        }
    }
}
